﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:DataStore_Repositories="clr-namespace:DataStore.Repositories;assembly=DataStore" x:Class="UI.AddBook"
    Title="New book" Height="424" Width="779" WindowStartupLocation="CenterOwner" ShowInTaskbar="False" WindowStyle="SingleBorderWindow" ResizeMode="CanResizeWithGrip">
    <DockPanel x:Name="contentDockPanel"  >
    	<StackPanel x:Name="buttonPanel" FlowDirection="LeftToRight" DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Margin="5">
    		<Button Height="23" x:Name="addButton" Width="75" Margin="10,0,0,0" Content="_Add" HorizontalAlignment="Left"/>
    		<Button Height="23" x:Name="cancelButton" Width="75" Margin="10,0,0,0" Content="_Cancel" HorizontalAlignment="Left"/>
    	</StackPanel>
		<ScrollViewer VerticalScrollBarVisibility="Auto">
			<DockPanel>
				<Grid>
					<Grid.RowDefinitions>
						<RowDefinition/>
						<RowDefinition/>
						<RowDefinition/>
						<RowDefinition/>
						<RowDefinition/>
						<RowDefinition/>
						<RowDefinition/>
					</Grid.RowDefinitions>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*"/>
						<ColumnDefinition Width="*"/>
						<ColumnDefinition Width="Auto"/>
						<ColumnDefinition Width="*"/>
						<ColumnDefinition Width="*"/>
					</Grid.ColumnDefinitions>
					<GridSplitter 	HorizontalAlignment="Right" 
									VerticalAlignment="Stretch"
									Grid.Column="2" 
									Grid.RowSpan="7"
									ResizeBehavior="PreviousAndNext" Width="5" />
					<TextBlock VerticalAlignment="Top" Text="Title:" TextWrapping="Wrap" d:LayoutOverrides="Width" Margin="0,0,-0.001,0"/>
					<TextBox x:Name="title" VerticalAlignment="Top" TextWrapping="Wrap" Grid.Column="1" MinWidth="20"/>
					<WrapPanel Grid.ColumnSpan="2" Grid.Row="3">
						<TextBlock Margin="0,0,1.092,0" TextWrapping="Wrap" Text="ISBN:"/>
						<TextBox x:Name="isbn" Margin="0,0,-0.001,0" Text="TextBox" TextWrapping="Wrap" MaxLength="16" MaxLines="1"/>
						<TextBlock Margin="0,0,1.092,0" Text="Format:" TextWrapping="Wrap"/>
						<ComboBox x:Name="format"/>
						<TextBlock HorizontalAlignment="Left" Text="Pages:" TextWrapping="Wrap"/>
						<TextBox x:Name="numberOfPages" Margin="0,0,-0.001,0" Text="TextBox" TextWrapping="Wrap" MaxLength="4" MaxLines="1"/>
					</WrapPanel>
					<TextBlock VerticalAlignment="Top" Grid.Column="3" Grid.ColumnSpan="2" Text="Authors:" TextWrapping="Wrap" d:LayoutOverrides="Width, GridBox" Margin="-0.001,0,0,0"/>
					<ListBox HorizontalAlignment="Left" Margin="16.173,-12.333,0,0" Grid.Column="4" Grid.Row="2" Grid.RowSpan="2" MinWidth="200" d:LayoutOverrides="GridBox" />
				</Grid>
			</DockPanel>
		</ScrollViewer>
    </DockPanel>
    
</Window>
